package com.gentle.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Gentle
 * @date 2019/05/29 : 20:37
 */
@Component
@ConfigurationProperties(prefix = "zookeeper")
@Data
public class ZookeeperProperties {
    /**
     * zookeeper 地址:ip
     */
    private String server;
    /**
     * 加锁路径
     */
    private String lockPath;
    /**
     * session超时时间
     */
    private Integer sessionTimeoutMs;
    /**
     * 连接超时时间
     */
    private Integer connectionTimeoutMs;
    /**
     * 重试次数
     */
    private Integer retryCount;
    /**
     * 重试间隔时间
     */
    private  Integer elapsedTimeMs;
}
